<?php
/**
 * 账变记录模型
 * @date    2020-01-01
 * @author  kiro
 * @email   294843009@qq.com
 * @version 1.0
 */
/*	/*
	 * All rights Reserved, Designed By www.youyacao.com <br>
	 * @Description:用户账户记录 <br>
	 * @version 蜻蜓C影视追剧系统  <br>
	 * @author:成都市一颗优雅草科技有限公司  <br>
	 * 注意：使用我司开源源代码请遵循license文件的协议仅供个人非盈利使用，禁止用于其他的商业用途
	 * 需要商业用途或者定制开发等可访问songshu.youyacao.com  联系QQ:2853810243 422108995 23625059584
	 * 正版系统查询系统 zhengbancha.youyacao.com
	 */
namespace App\Models;

class UserAccountLog extends BaseModel
{
const TYPE_AMOUNT = 'AMOUNT';
const TYPE_INTEGRAL = 'INTEGRAL';
const TYPE_GOLD = 'GOLD';//余额
        const SOURCE_REGISTER = 'REGISTER';//积分
        const SOURCE_RECHARGE = 'RECHARGE';//金币
    const SOURCE_AGENT_RECHARGE = 'AGENT_RECHARGE';
    const SOURCE_GIVE = 'GIVE';
    const SOURCE_WITHDRAW = 'WITHDRAW';
    public static $type_arr = [
        self::TYPE_AMOUNT => '余额变化',
        self::TYPE_INTEGRAL => '积分变化',
        self::TYPE_GOLD => '金币变化',
    ];
    public static $source_arr = [
        self::SOURCE_REGISTER => '邀请注册',
        self::SOURCE_RECHARGE => '充值',
        self::SOURCE_AGENT_RECHARGE => '代理充值',
        self::SOURCE_GIVE => '打赏',
        self::SOURCE_WITHDRAW => '提现',
    ];
    protected $table = 'user_account_log';
    protected $fillable = [
        'user_id',
        'type',
        'amount',
        'integral',
        'gold',
        'source',
        'remark',
        'status'
    ];
}
